package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 商品规格关系表
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopProductSpecPageDTO", description = "商品规格关系表")
public class ShopProductSpecPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 所属商品id
     */
    @ApiModelProperty(value = "所属商品id")
    @NotNull(message = "所属商品id不能为空")
    private Long productId;
    /**
     * 规格类型id
     */
    @ApiModelProperty(value = "规格类型id")
    @NotNull(message = "规格类型id不能为空")
    private Long specId;
    /**
     * 规格类型值id
     */
    @ApiModelProperty(value = "规格类型值id")
    @NotNull(message = "规格类型值id不能为空")
    private Long specValueId;
    /**
     * 是否有图 0-否 1-是
     */
    @ApiModelProperty(value = "是否有图 0-否 1-是")
    private Integer hasImg;
    /**
     * 排序值
     */
    @ApiModelProperty(value = "排序值")
    private Integer orderSort;

}
